import request from '@/utils/request';

// 查询用户收货地址列表
export const queryUserAddressList = (data) => {
  return request({
    url: '/shop/config/queryUserAddressList',
    method: 'POST',
    data,
  })
}
// 编辑/保存用户收货地址
export const editOrSaveUserAddress = (data) => {
  return request({
    url: '/shop/config/editOrSaveUserAddress',
    method: 'POST',
    data,
  })
}
// 删除
export const deleteUserAddress = (data) => {
  return request({
    url: '/shop/config/deleteUserAddress',
    method: 'POST',
    responseType: 'blob',
    data,
  })
}
// 获取用户银行卡列表
export const getUserBankCardList = (data) => {
  return request({
    url: '/shop/config/getUserBankCardList',
    method: 'POST',
    data,
  })
}
// 添加用户银行卡列表
export const addBankCard = (data) => {
  return request({
    url: '/shop/config/addBankCard',
    method: 'POST',
    data,
  })
}
// 删除用户银行卡列表
export const delBankCard = (data) => {
  return request({
    url: '/shop/config/delBankCard',
    method: 'POST',
    data,
  })
}
// 修改商家信息
export const updateShopInfo = (data) => {
  return request({
    url: '/shop/config/updateShopInfo',
    method: 'POST',
    data,
  })
}